<?php
namespace app\system\validate;

use think\Validate;

class Goods extends Validate
{

    protected $rule = [
        'cate_id' => 'require',
        'title' => 'require',
        'img' => 'require',
        'imgs' => 'require',
        'price' => 'require',
        'content' => 'require',
    ];

    protected $message = [
        'cate_id' => '请选择商品分类',
        'title' => '请填写商品名称',
        'img' => '请上传商品图片',
        'imgs' => '请上传商品详情图片',
        'price' => '请填写商品单价',
        'content' => '请填写商品详情',
    ];
}


